import { HIDE_TRANSFER, SET_TRANSFER, SHOW_TRANSFER } from '../constant';

export const setTransfer = (data) => ({type: SET_TRANSFER, data})

export const showTransfer = () => ({ type: SHOW_TRANSFER })

export const hideTransfer = () => ({ type: HIDE_TRANSFER })

export const toggleTransfer = () => (dispatch, getState) => {
  let visible = getState().transferVisible
  dispatch(setTransfer(!visible))
}


